function winResize(){ //时时获取浏览器窗口尺寸
	var winWidth = 0;
	var winHeight = 0;
	// 获取窗口宽度
	if(window.innerWidth) winWidth = window.innerWidth;
	else if((document.body) && (document.body.clientWidth)) winWidth = document.body.clientWidth;
	// 获取窗口高
	if(window.innerHeight) winHeight = window.innerHeight;
	else if ((document.body) && (document.body.clientHeight)) winHeight = document.body.clientHeight;
	// 通过深入 Document 内部对 body 进行检测，获取窗口大小
	if (document.documentElement && document.documentElement.clientHeight && document.documentElement.clientWidth){
		winHeight = document.documentElement.clientHeight;
		winWidth = document.documentElement.clientWidth;
	}
	// 结果输出至两个文本框
	var resizeArray = {"winHeight":winHeight,"winWidth":winWidth};
	return resizeArray;
}
function strChangeArr(str,separa){ //字符串转数组 strChangeArr(字符串,分隔符)
	var arr = Array();
	arr = str.split(separa);
	return arr; 
}
function arrChangeStr(arr,separa){ //数组转字符串 arrChangeStr(数组,分隔符)
	var str = String;
	str = arr.join(separa);
	return str;
}
function addCookie(name,value){ // unCode.toUnicode();
	document.cookie = name+'='+escape(value);
}